#ifndef DATELIST_H_
#define DATELIST_H_
#include <vector>
#include<string>
#include "Poco/DateTime.h"
#include "Poco/DateTimeParser.h"
using namespace Poco;
using namespace std;
class Event;

class DateList
{
	private:
		vector<Event*> eventsList;
		string name;
		int numOfEvents;
		int countTesting; //for testing
		void sortHighFirst(Event* event);
		void sortLowFirst(Event*event);
		void sortByDate(Event* event);
		void addSellingEvent(Event* event);
		void addBuyingEvent(Event* event);
		void addCCEvent(Event* event);

	public:
		DateList(string name);
		~DateList();
		void clear();
		bool noMoreEvents();
		void addEvent(Event* event);
		Event getFirst(DateTime today);
		string getName();
		void print();
		DateTime getFirstDate();
};

#endif /*DATELIST_H_*/
